﻿using System;
using log4net;

namespace Possan.IOC
{
	public class ConfigurationSectionHandler : System.Configuration.IConfigurationSectionHandler
	{
		private static ILog logger = LogManager.GetLogger(typeof(ConfigurationSectionHandler));

		#region IConfigurationSectionHandler Members

		public object Create(object parent, object configContext, System.Xml.XmlNode section)
		{
			logger.Debug("In ConfigurationSectionHandler");
			logger.Debug("Config XML: " + section.InnerXml);
			Factory.Registry.RegisterAll(section);
			return new Object();
		}

		#endregion

	}
}
